home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / Mesa / include / gl / amigamesartl.h next >
C/C++ Source or Header  |  1998-08-02  |  2KB  |  94 lines

  1. /*
  2.  * Mesa 3-D graphics library
  3.  * Version:  2.2
  4.  * Copyright (C) 1995-1997  Brian Paul
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the Free
  18.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21.  
  22. /*
  23.  * amigamesartl.h
  24.  *
  25.  * Version 1.0  27 Jun 1998
  26.  * by Jarno van der Linden
  27.  * jarno@kcbbs.gen.nz
  28.  *
  29.  * Based on FooMesa.h ver 1.1
  30.  *
  31.  * Version 1.1  02 Aug 1998
  32.  * by Jarno van der Linden
  33.  * jarno@kcbbs.gen.nz
  34.  *
  35.  * - Quantizer plugin tags added
  36.  *
  37.  */
  38.  
  39.  
  40.  
  41. #ifndef AMIGAMESARTL_H
  42. #define AMIGAMESARTL_H
  43.  
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49.  
  50. #ifndef MAKE_AMIGALIB
  51. #include "pragmas/amigamesartl_pragmas.h"
  52. #endif
  53.  
  54. #include "GL/gl.h"
  55.  
  56. #include <utility/tagitem.h>
  57.  
  58.  
  59. #define AMRTL_Base        (TAG_USER + 42)
  60.  
  61. #define AMRTL_RGBAMode        (AMRTL_Base + 0)
  62. #define AMRTL_IndexMode        (AMRTL_Base + 1)
  63. #define AMRTL_NumColours    (AMRTL_Base + 2)
  64. #define AMRTL_NumColors        (AMRTL_NumColours)
  65. #define AMRTL_ColourBase    (AMRTL_Base + 3)
  66. #define AMRTL_ColorBase        (AMRTL_ColourBase)
  67. #define AMRTL_Quantizer        (AMRTL_Base + 4)
  68. #define AMRTL_QuantizerVersion    (AMRTL_Base + 5)
  69.  
  70.  
  71. typedef struct amiga_mesa_rtl_context *AmigaMesaRTLContext;
  72.  
  73.  
  74. extern __asm __saveds AmigaMesaRTLContext AmigaMesaRTLCreateContextA( register __a0 struct Window *window, register __a1 struct TagItem *tags );
  75.  
  76. extern AmigaMesaRTLContext AmigaMesaRTLCreateContext( struct Window *window, Tag tag, ...  );
  77.  
  78. extern __asm __saveds void AmigaMesaRTLDestroyContext( register __a0 AmigaMesaRTLContext context );
  79.  
  80. extern __asm __saveds void AmigaMesaRTLMakeCurrent( register __a0 AmigaMesaRTLContext context );
  81.  
  82. extern __asm __saveds AmigaMesaRTLContext AmigaMesaRTLGetCurrentContext( void );
  83.  
  84.  
  85. /* Probably some more functions... */
  86.  
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90.  
  91.  
  92. #endif
  93.  
  94.